<!DOCTYPE html>
<html lang="en">
 <include file="Public:head" />
<body class="page-body  page-fade" data-url="http://neon.dev">

<div class="page-container"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->
  
 <include file="Public:sidebar-menu" />

  <div class="main-content">
        
    <include file="Public:top_row" />
    
    <hr />

          <h3>确认订单信息</h3>

          <div class="row">
              <div class="col-md-12">
                
                <div class="form-group">
                  <label for="field-1" class="control-label">订单号</label>
                  
                  <input type="text"  name="address"  class="form-control" id="field-1" value="{$detail.order_code}" disabled>
                  <input type="hidden"   class="form-control" id="order_id" value="{$detail.id}">
                </div>  
                
              </div>
            </div>
          
            <div class="row">
              <div class="col-md-12">
                
                <div class="form-group">
                  <label for="field-1" class="control-label">地址</label>
                  
                  <input type="text"  name="address"  class="form-control" id="field-1" value="{$detail.address}" disabled>
                </div>  
                
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                
                <div class="form-group">
                  <label for="field-2" class="control-label">邮编</label>
                 <input type="text" name="zipcode"  class="form-control" id="field-2" value="{$detail.zipcode}" disabled>
                </div>  
                
              </div>
            </div>
             <div class="row">
              <div class="col-md-12">
                
                <div class="form-group">
                  <label for="field-3" class="control-label">订单描述</label>
                 <input type="text" name="desc"  class="form-control" id="field-3" value="{$detail.desc}" disabled>
                </div>  
                
              </div>
            </div>

            <div class="row">
              <div class="col-md-12">
                
                <div class="form-group">
                  <label for="field-4" class="control-label">订单数量</label>
                 <input type="text" name="order_num"  class="form-control" id="field-4" value="{$detail.order_num}" disabled>
                </div>  
                
              </div>
            </div>

            <div class="row">
              <div class="col-md-12">
                
                <div class="form-group">
                  <label for="field-4" class="control-label">支付金额</label>
                 <input type="text" name="order_num"  class="form-control" id="field-4" value="{$detail.moshi_total_xf}" disabled>
                </div>  
           
              </div>
            </div>
     <button type="button" class="btn btn-info" id="offlinePay">线下支付 </button>
      <button type="button" class="btn btn-info" id="payByCf">财富积分支付 </button> <br />
      <strong>目前拥有财富积分：({$user.cf_jifen})</strong>
    
    
    <!-- Footer -->
    <include file="Public:footer" />
  </div>

  <!-- Imported styles on this page -->
  <link rel="stylesheet" href="__PUBLIC__/assets/js/jvectormap/jquery-jvectormap-1.2.2.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/js/rickshaw/rickshaw.min.css">

  <!-- Bottom scripts (common) -->
  <script src="__PUBLIC__/assets/js/gsap/main-gsap.js"></script>
  <script src="__PUBLIC__/assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
  <script src="__PUBLIC__/assets/js/bootstrap.js"></script>
  <script src="__PUBLIC__/assets/js/joinable.js"></script>
  <script src="__PUBLIC__/assets/js/resizeable.js"></script>
  <script src="__PUBLIC__/assets/js/neon-api.js"></script>
  <script src="__PUBLIC__/assets/js/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>


  <!-- Imported scripts on this page -->
  <script src="__PUBLIC__/assets/js/jvectormap/jquery-jvectormap-europe-merc-en.js"></script>
  <script src="__PUBLIC__/assets/js/jquery.sparkline.min.js"></script>
  <script src="__PUBLIC__/assets/js/rickshaw/vendor/d3.v3.js"></script>
  <script src="__PUBLIC__/assets/js/rickshaw/rickshaw.min.js"></script>
  <script src="__PUBLIC__/assets/js/raphael-min.js"></script>
  <script src="__PUBLIC__/assets/js/morris.min.js"></script>
  <script src="__PUBLIC__/assets/js/toastr.js"></script>
  <script src="__PUBLIC__/assets/js/neon-chat.js"></script>
    <script src="__PUBLIC__/assets/js/jquery.validate.min.js"></script>
    <script src="__PUBLIC__/assets/js/jquery-1.11.0.min.js"></script>
  <script src="__PUBLIC__/Common/layer/layer.js"></script>

  <!-- JavaScripts initializations and stuff -->
  <script src="__PUBLIC__/assets/js/neon-custom.js"></script>


  <!-- Demo Settings -->
  <script src="__PUBLIC__/assets/js/neon-demo.js"></script>
<script>
  $("#offlinePay").click(function(){
    layer.msg('请等待管理员审核', {time:1000}, function(index){
        layer.close(index);
        location.href="__CONTROLLER__/order_process";
        });
  })

  $("#payByCf").click(function(){
    var userid={$user.id};
    var order_id={$detail.id};

      $.post('{:U("paybycf")}',
      {userid:userid,order_id:order_id},
  function(data){

    if(data.status){
      layer.msg(data.info, {time:1000}, function(index){
        layer.close(index);
        location.href="__CONTROLLER__/order_process";
        });
       
    }
  });

  })


</script>



</body>

</html>